<div id="activity_stats">
    <div class="one_wrap fl_left">
        <div class="widget">
            <div class="widget_title"><span class="iconsweet">8</span>
                <h5>Маселе</h5>
            </div>
            <div class="widget_body">
                <div class="content_pad">
                    <h1><?= $this->problem->title;?></h1>
                        <p> <?= $this->problem->body; ?> </p>
                        <h3> Кирүүчү берилиштер: </h3> 
                        <p> <?= $this->problem->input; ?> </p>

                        <h3> Чыгуучу берилиштер: </h3> 
                        <p> <?= $this->problem->output; ?> </p> 
                </div>
            </div>
        </div>
    </div>
    
    <br clear="all"/>
    <br />
    
    <div class="widget">
        <div class="widget_title"><span class="iconsweet">?</span>
            <h5>Мисалдар</h5>
        </div>
        <div class="widget_body">
            <table border="0" width="100%" class="activity_datatable" cellspacing="0" cellpadding="8">
                <tbody>
                    <tr>
                        <th width="5%"> № </th>
                        <th width="47%"> Input </th>
                        <th width="47%"> Output </th>
                    </tr>
                    <? $i = 1; ?>
                    <? foreach ($this->example as $value) :?>
                        <tr align="left">
                            <td>
                                <?= $i ++; ?>
                            </td>
                            <td>
                                <pre>
<?=$value['input']; ?>
                                </pre>
                            </td>

                            <td>
                                <pre>
<?= $value['output']; ?>
                                </pre>
                            </td>
                        </tr>
                    <? endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
    <? if (Zend_Auth::getInstance()->hasIdentity()) :?>
    <div class="widget">
        <div class="widget_title">
            <span class="iconsweet">J</span>
            <h5><?= $this->title;?></h5>
        </div>

        <div class="widget_body">
            <ul class="form_fields_container">
                <form <? foreach ($this->form->getAttribs() as $key => $value) echo $key . "=" . "$value ";?>>
                    <li><label><?= $this->form->file->getLabel();?></label> <div class="form_input"><?= $this->form->file;?></div></li>
                    <li align="center"> <?= $this->form->submit;?> </li>                 
                </form>
            </ul>
        </div>
    </div>
    <br />
    <a class="button_big" href="<?= $this->url(array('controller' => 'problems', 'action' => 'comment', 'id' => $this->id));?>">Талкуу</a>
    <? else :?>
    <div class="widget">
        <div class="widget_title">
            <span class="iconsweet">J</span>
            <h5>Маселенин чыгарылышын жиберүү үчүн <a href="<?= $this->url(array('controller' => 'users', 'action' => 'registration'), "", true);?>">каттодон өтүнүз</a> же сайтка <a href="<?= $this->url(array('controller' => 'users', 'action' => 'login'), "", true);?>">кириңиз</a></h5>
        </div>
    </div>
    
    <? endif;?>
</div>